package newkfp.util;


import java.io.UnsupportedEncodingException;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author labib.farag
 */
public class Test {
    public static void main(String[] args) {
        String s="ÙØ¨ÙØ¨ ÙØ±Ø¬ ÙØ¨ÙØ¨";
        try {
            System.out.println(" String is "+new String(s.getBytes("ISO-8859-1")));
        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    public static String convert(String s){
        try {
            return new String(s.getBytes("ISO-8859-1"));
        } catch (UnsupportedEncodingException ex) {
           return  null;
        }
    }
}
